arm/processor: fix MISRA C 2012 Rule 20.7 violations
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 24 Aug 2022 12:23:00 +0000 (14:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Aug 2022 12:23:00 +0000 (14:23 +0200)
commit1d5b8c434dea074fce0f4cf796bd5169c341a806
tree37eddd209b7ad6af6f0212d8a3cc6220a8819bf9
parent7bb36cbb932da8599b8d57b984fa0e858a8ef7ce
arm/processor: fix MISRA C 2012 Rule 20.7 violations

In macros MPIDR_LEVEL_SHIFT() and MPIDR_AFFINITY_LEVEL(), add parentheses
around the macro parameters 'level' and 'mpidr', respectively, to prevent
against unintended expansions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/include/asm/processor.h